<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
    return view('welcome');
});

Route::post('/session/create', 'SessionController@create');
Route::post('good/store/create', 'GoodStoreController@create');
Route::post('good/store/find', 'GoodStoreController@find');

Route::post('good/storemember/create', 'GoodStoreMemberController@create');
Route::post('good/storemember/hasstore', 'GoodStoreMemberController@hasStore');
Route::post('good/storemember/edit', 'GoodStoreMemberController@edit');
Route::post('good/storemember/findmembers', 'GoodStoreMemberController@findMembers');
Route::post('good/storemember/deletemembers', 'GoodStoreMemberController@deleteMembers');
Route::post('good/storemember/getsomememberdetail', 'GoodStoreMemberController@getSomeMemberDetails');

Route::post('good/class/create', 'GoodClassController@create');
Route::post('good/class/edit', 'GoodClassController@edit');
Route::post('good/class/delete', 'GoodClassController@delete');
Route::post('good/class/findclasses', 'GoodClassController@findClasses');

Route::post('good/create', 'GoodController@create');
Route::post('good/findGoods', 'GoodController@findGoods');
Route::post('good/find', 'GoodController@find');
Route::post('good/delete', 'GoodController@delete');
Route::post('good/edit', 'GoodController@edit');
Route::post('good/addbpic', 'GoodController@addBPic');
Route::post('good/changeclass', 'GoodController@changeClass');
Route::post('good/editdiscount', 'GoodController@editDiscount');
Route::post('good/getdiscountmsg', 'GoodController@getDiscountMsg');
Route::post('good/getdefault', 'GoodController@getDefault');
Route::post('good/getcolorsizenumber', 'GoodController@getColorSizeNumber');
Route::post('good/hasno', 'GoodController@hasNo');
Route::post('good/getfromclass', 'GoodController@getFromClass');


Route::post('good/input', 'GoodStockController@input');
Route::post('good/return', 'GoodStockController@ret');
Route::post('good/sale', 'GoodStockController@sale');
Route::post('good/wholesalereturn', 'GoodStockController@wholeSaleReturn');
Route::post('good/up', 'GoodStockController@up');
Route::post('good/down', 'GoodStockController@down');
Route::post('good/order', 'GoodStockController@order');
Route::post('good/getorder', 'GoodStockController@getOrder');
Route::post('good/payorder', 'GoodStockController@payOrder');

Route::post('good/collect', 'GoodRecordController@collect');
Route::post('good/getrecorddetail', 'GoodRecordController@getRecordDetail');
Route::post('good/getsold', 'GoodRecordController@getSold');
Route::post('good/getsoldrecord', 'GoodRecordController@getSoldRecord');